<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: type_traits&lt; T, _Tp, _Tr &gt; 模板结构体 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="../../da/d75/structtype__traits-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">type_traits&lt; T, _Tp, _Tr &gt; 模板结构体 参考</div></div>
</div><!--header-->
<div class="contents">

<p>类型元函数  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d6/de9/typetraits_8hpp_source.html">typetraits.hpp</a>&gt;</code></p>
<div class="dynheader">
类 type_traits&lt; T, _Tp, _Tr &gt; 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d0/d1a/structtype__traits__inherit__graph.png" border="0" usemap="#atype__traits_3_01_t_00_01___tp_00_01___tr_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="atype__traits_3_01_t_00_01___tp_00_01___tr_01_4_inherit__map" id="atype__traits_3_01_t_00_01___tp_00_01___tr_01_4_inherit__map">
<area shape="rect" title="类型元函数" alt="" coords="33,5,158,91"/>
<area shape="rect" href="../../d0/da6/structtype__traits.html" title=" " alt="" coords="33,155,158,224"/>
<area shape="poly" title=" " alt="" coords="98,106,98,155,93,155,93,106"/>
<area shape="rect" href="../../d7/d18/classwheels_1_1_buffer.html" title=" " alt="" coords="5,273,185,668"/>
<area shape="poly" title=" " alt="" coords="98,239,98,274,93,274,93,239"/>
</map>
</div>
<div class="dynheader">
type_traits&lt; T, _Tp, _Tr &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d29/structtype__traits__coll__graph.png" border="0" usemap="#atype__traits_3_01_t_00_01___tp_00_01___tr_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="atype__traits_3_01_t_00_01___tp_00_01___tr_01_4_coll__map" id="atype__traits_3_01_t_00_01___tp_00_01___tr_01_4_coll__map">
<area shape="rect" title="类型元函数" alt="" coords="5,5,131,91"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a6a8f717b002f36e14ef144dd168a26c9" id="r_a6a8f717b002f36e14ef144dd168a26c9"><td class="memItemLeft" align="right" valign="top">typedef T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6a8f717b002f36e14ef144dd168a26c9">value_type</a></td></tr>
<tr class="separator:a6a8f717b002f36e14ef144dd168a26c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15400c7a025c75100c04c5dc6f94b32c" id="r_a15400c7a025c75100c04c5dc6f94b32c"><td class="memItemLeft" align="right" valign="top">typedef _Tp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a15400c7a025c75100c04c5dc6f94b32c">pointer</a></td></tr>
<tr class="separator:a15400c7a025c75100c04c5dc6f94b32c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1fd64f5e9cf366e8e9b9ff0466c450b" id="r_ab1fd64f5e9cf366e8e9b9ff0466c450b"><td class="memItemLeft" align="right" valign="top">typedef _Tr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab1fd64f5e9cf366e8e9b9ff0466c450b">refrence</a></td></tr>
<tr class="separator:ab1fd64f5e9cf366e8e9b9ff0466c450b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename T, typename _Tp = T *, typename _Tr = T&amp;&gt;<br />
struct type_traits&lt; T, _Tp, _Tr &gt;</div><p>类型元函数 </p>
<dl class="section version"><dt>版本</dt><dd>1.1 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2020-8-7 ~ 2022-2-21 2022-2-21 宋炜 ADDED 添加bool类型判断 2022-3-11 宋炜 ADDED 添加获取数组长度接口 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html">typetraits.hpp</a> 第 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html#l00015">15</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="a15400c7a025c75100c04c5dc6f94b32c" name="a15400c7a025c75100c04c5dc6f94b32c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15400c7a025c75100c04c5dc6f94b32c">&#9670;&#160;</a></span>pointer</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename _Tp  = T *, typename _Tr  = T&amp;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef _Tp <a class="el" href="../../d0/da6/structtype__traits.html">type_traits</a>&lt; T, _Tp, _Tr &gt;::pointer</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html">typetraits.hpp</a> 第 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<a id="ab1fd64f5e9cf366e8e9b9ff0466c450b" name="ab1fd64f5e9cf366e8e9b9ff0466c450b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1fd64f5e9cf366e8e9b9ff0466c450b">&#9670;&#160;</a></span>refrence</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename _Tp  = T *, typename _Tr  = T&amp;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef _Tr <a class="el" href="../../d0/da6/structtype__traits.html">type_traits</a>&lt; T, _Tp, _Tr &gt;::refrence</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html">typetraits.hpp</a> 第 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<a id="a6a8f717b002f36e14ef144dd168a26c9" name="a6a8f717b002f36e14ef144dd168a26c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a8f717b002f36e14ef144dd168a26c9">&#9670;&#160;</a></span>value_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename _Tp  = T *, typename _Tr  = T&amp;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef T <a class="el" href="../../d0/da6/structtype__traits.html">type_traits</a>&lt; T, _Tp, _Tr &gt;::value_type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html">typetraits.hpp</a> 第 <a class="el" href="../../d6/de9/typetraits_8hpp_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../d6/de9/typetraits_8hpp_source.html">typetraits.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
